package main.java.servlet.test;

import sun.security.provider.MD5;

import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import java.util.List;

public class Mytest {

    public static void main(String[] args) throws NoSuchAlgorithmException {
        Test t = new Test();
        t.setName("hello");
        List list = Arrays.asList(t);
        MessageDigest md = MessageDigest.getInstance("MD5");
        md.update("888888".getBytes());
        byte[] result = md.digest(); // 16 21218cca77804d2ba1922c33e0151105
        String password = new BigInteger(1, result).toString(16);
        System.out.println(password);
        System.out.print(password.equals("21218cca77804d2ba1922c33e0151105"));

        double a = 1;
        double b = 100;
        double c = a/b * 100;
        System.out.print(a);

    }
}
